use actix_web::{get, HttpResponse, post, Responder};

#[post("/api/test")]
pub async fn handle() -> actix_web::Result<String> {
    let text = "hello world";
    println!("{}",text);

    Ok(text.to_string())
}

#[get("/")]
pub async fn hello() -> impl Responder {
    HttpResponse::Ok().body("<div><h1>Hello world!</h1></div>")
}